
function showMsg(msg)
{
	$("#Msg_DataReport").html(msg)
	$("#Msg_DataReport").dialog('open')
}

function  BeginAnalysis_exam()
{
	var courseName=$('#courseName').val();
	
	$("#myrecordloading").removeClass("hide");
	$.ajax({
		type: 'Post',
		url: '/report_gen_classPie',
		data: "courseName="+courseName,
		dataType:"json",
		success: function(response) {
			var dataArray=new Array();
			$(response.classpie).each(function(i)
						{
							var seri=new Array();
							seri.push("zbo");
							seri.push(parseInt(this));
							dataArray.push(seri);
						})
			var dataName=$("#courseName option:selected").text(); 
			HightChartgenerate_classpie(dataName,dataArray);
			$("#show_myrecord").css("display","none");
			$("#hide_myrecord").css("display","block");
			$("#myrecord").css("display","block");
			$("#myrecordloading").addClass("hide");
			
		}
	})
	
}

